<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:include page="header.jsp"></jsp:include>
<div class="container">
	<div class="row">
		<div class="offset1 span10 offset1">
			<form class="form-horizontal" action="AddMovieServlet" method="post">
				<table class="table table-striped table-bordered table-condensed">
					<thead>
						<tr>
							<th>用户ID</th>
							<th>用户名</th>
							<th>密码</th>
							<th>姓名</th>
							<th>性别</th>
							<th>年龄</th>
							<th>电话</th>
							<th>邮箱</th>
							<th>注册日期</th>
							<th>会员级别</th>
							<th>是否激活</th>
							<th>编辑操作</th>
						</tr>
					</thead>
					<c:forEach items="${ userList }" var="user">
						<tbody>
							<tr>
								<td>${ user.id }</td>
								<td>${ user.username }</td>
								<td>${ user.password }</td>
								<td>${ user.name }</td>
								<td>${ user.sex }</td>
								<td>${ user.age }</td>
								<td>${ user.phone }</td>
								<td>${ user.email }</td>
								<td>${ user.startDate }</td>
								<td>${ user.level }</td>
								<td>${ user.isActive }</td>
								<td><a
									href="EditUserServlet?action=edit&username=${ user.username }">修改</a>
									| <a
									href="EditUserServlet?action=delete&username=${ user.username }"
									onclick="return confirm('确定删除')">删除</a> | <a
									href="ShowSaleServlet?userid=${ user.id }">查看消费记录</a></td>
							</tr>
						</tbody>
					</c:forEach>
				</table>
			</form>
		</div>
	</div>
</div>
<jsp:include page="footer.jsp"></jsp:include>